package com.wlts.wzy.KSOrderModule.service;

import com.wlts.wzy.expand.MyLambdaQueryWrapper;
import com.wlts.wzy.expand.MyPage;
import com.wlts.wzy.KSOrderModule.entity.KsExpressCode;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

/**
 * <p>
 * 快手快递代码 服务类
 * </p>
 *
 * @author zhiyong
 * @since 2021-02-03
 */
public interface IKsExpressCodeService extends IService<KsExpressCode> {

    KsExpressCode getById(Serializable id, boolean isUseCache);

    MyPage<KsExpressCode> page(KsExpressCode ksExpressCode, Integer page, Integer size, boolean isUseCache);

    MyPage<KsExpressCode> page(KsExpressCode ksExpressCode, Integer page, Integer size, boolean isUseCache, String dimension);

    MyPage<KsExpressCode> page(MyLambdaQueryWrapper<KsExpressCode> wrapper, Integer page, Integer size, boolean isUseCache);

    MyPage<KsExpressCode> page(MyLambdaQueryWrapper<KsExpressCode> wrapper, Integer page, Integer size, boolean isUseCache, String dimension);

    KsExpressCode selectOnes(MyLambdaQueryWrapper<KsExpressCode> wrapper, boolean isUseCache);

    void delAllPageCache();

    void delDimensionPageCache(String dimension);
}
